<h5>新增部门</h5>
<div class="content">
  <form #departmentForm="ngForm">
    <div class="form-group">
      <label class="mr-2"><span class="red">*</span>部门名称</label>
      <input required class="form-control mr-2" type="text"  placeholder="请输入部门名称" [(ngModel)]="department.departName" name="departName">
      <div class="red" *ngIf="messages.departName">{{ messages.departName }}</div>
    </div>
    <div class="form-group">
      <label class="mr-2">部门描述</label>
      <textarea class="form-control mr-2" type="text"  placeholder="请输入部门描述" [(ngModel)]="department.description" name="description"></textarea>
    </div>
    <div class="buttons text-center">
      <button class="btn btn-outline-primary mr-2" type="button" (click)="onSubmit()">保存</button>
      <button class="btn btn-outline-secondary" type="button" [mat-dialog-close] cdkFocusInitial>取消</button>
    </div>
  </form>
</div>
